#include "stdio.h"

extern const char EBAS_STANDARD[255];
extern const char EBAS_FAKTURA[255];
extern const char EBAS_EKSAMEN[255];
extern const char EBAS_INTERNET[255];
extern const char EBAS_TRIAL[255];

typedef struct rc4_key
{      
    unsigned char state[256];       
    unsigned char x;        
    unsigned char y;
} rc4_key;

void prepare_key(unsigned char *key_data_ptr,int key_data_len,rc4_key *key);
void rc4(unsigned char *buffer_ptr,int buffer_len,rc4_key * key);
void make_hash(const char * data, BYTE ** hash, long * len);
void write_file(const char * filename, unsigned char * data, long length);
void gen_number(BYTE ** random, long * length);
void make_licens_key(const char * data, BYTE ** key, long * len);
void make_fixed_salt(long length, BYTE ** random);